package up_down_share.viewcontroller.coverviewpager;

import up_down_share.updaonwshare.v01.R;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;





public class fragment1 extends Fragment
{
	// --------------------------------------------------
	// ----- constants -----
	// --------------------------------------------------

	// --------------------------------------------------
	// ----- properties -----
	// --------------------------------------------------
	private int mNum;
	private Context context;

	// --------------------------------------------------
	// ----- extends -----
	// --------------------------------------------------

	/**
	 * Create a new instance of CountingFragment, providing "num" as an argument.
	 */
	static fragment1 newInstance(final int num)
	{
		final fragment1 f = new fragment1();

		// Supply num input as an argument.
		final Bundle args = new Bundle();
		args.putInt("num", num);
		f.setArguments(args);

		return f;
	}

	/**
	 * When creating, retrieve this instance's number from its arguments.
	 */
	@Override
	public void onCreate(final Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		mNum = getArguments() != null ? getArguments().getInt("num") : 1;
	}

	@Override
	public void onAttach(final Activity activity)
	{
		super.onAttach(activity);
		context = activity;
	}

	/**
	 * The Fragment's UI is just a simple text view showing its instance number.
	 */
	@Override
	public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState)
	{

		final View v = inflater.inflate(R.layout.fragment1, container, false);
	
		return v;
	}

	// --------------------------------------------------
	// ----- functions -----
	// --------------------------------------------------

}
